package com.bienvenue.main.httpService.interceptor;

import com.google.gson.Gson;

/**
 * Created by Administrator on 2018/7/26.
 * 基础的消息类型
 */

public class BaseModel<T>{
    /*"status": 200, //状态
    "msg": "",*/
    private int code;
    private String message;

    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }

    private T result;


    public int getCode() {
        return code;
    }

    public void setCode(int status) {
        this.code = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String msg) {
        this.message = msg;
    }

    @Override
    public String toString() {
        return new Gson().toJson(this);
    }
}
